<?php
	
	// 在php中导入其他的php文件
	include_once 'commonDB.php';
	
	// 1. 获取操作的类型
	$act = $_GET["act"];	
	switch ($act) {
		case 'get':
			$title =$_GET["title"];
			$http =$_GET["http"];
			$timer =$_GET["timer"];
			$y =$_GET["y"];
			$m =$_GET["m"];
			$d =$_GET["d"];
			$sql = "insert into message_putao(title,http,y,m,d) values ('{$title}','{$http}','{$y}','{$m}','{$d}')";			
			mysql_query($sql);
			break;
			case 'get2':
			$title2 =$_GET["title2"];
			$http2 =$_GET["http2"];
			$timer2 =$_GET["timer2"];
			$y =$_GET["y"];
			$m =$_GET["m"];
			$d =$_GET["d"];
			$sql = "insert into message_putao2(title2,http2,y,m,d) values ('{$title2}','{$http2}','{$y}','{$m}','{$d}')";			
			mysql_query($sql);
			break;
		case 'shequ':
			$href=$_GET["href"];
			$scr=$_GET["scr"];
			$txt=$_GET["txt"];
			$sql = "insert into putao_chanpin(href,scr,txt) values ('{$href}','{$scr}','{$txt}')";
			mysql_query($sql);				
			break;
	}
	
	
	
	
	
	
	?>